package com.tony.demo.test.eventbus;

import java.lang.reflect.Method;

/**
 * Copyright:
 * Created by TangJian on 2019/4/17.
 * Description:
 * Modified:
 */

class EventManager {
    private Class<?>[] parameterTypes;  //事件的方法参数类型
    private ThreadMode threadMode;
    private Method method;  //准备调用的方法
    private String eventName;  //事件名称

    public EventManager(Class<?>[] event, ThreadMode threadMode, Method method, String eventName) {
        this.parameterTypes = event;
        this.threadMode = threadMode;
        this.method = method;
        this.eventName = eventName;
    }

    public Class<?>[] getParameterTypes() {
        return parameterTypes;
    }

    ThreadMode getThreadMode() {
        return threadMode;
    }

    Method getMethod() {
        return method;
    }

    String getEventName() {
        return eventName;
    }
}
